package com.qf.purchasing.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 采购申请表
 */
@ApiModel(description = "采购申请表")
@Data
@TableName(value = "z_apply")
public class Apply {
    public static final String COL_APPLY_ID = "apply_id";
    public static final String COL_TITLE = "title";
    public static final String COL_DEPT_ID = "dept_id";
    public static final String COL_WAY_ID = "way_id";
    public static final String COL_LINK_ID = "link_id";
    public static final String COL_EMP_ID = "emp_id";
    public static final String COL_NUM = "num";
    public static final String COL_PRICE = "price";
    public static final String COL_MONEY = "money";
    public static final String COL_TIME = "time";
    public static final String COL_STATUS = "status";
    /**
     * 采购申请id
     */
    @TableId(value = "apply_id", type = IdType.INPUT)
    @ApiModelProperty(value = "采购申请id")
    private Integer applyId;
    /**
     * 采购申请标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "采购标题")
    private String title;
    /**
     * 采购部门id
     */
    @TableField(value = "dept_id")
    @ApiModelProperty(value = "部门id")
    private Integer deptId;
    /**
     * 采购方式id
     */
    @TableField(value = "way_id")
    @ApiModelProperty(value = "采购方式id")
    private Integer wayId;
    /**
     * 当前环节id
     */
    @TableField(value = "link_id")
    @ApiModelProperty(value = "当前环节id")
    private Integer linkId;
    /**
     * 办理人id
     */
    @TableField(value = "emp_id")
    @ApiModelProperty(value = "办理人id")
    private Integer empId;
    /**
     * 采购数量
     */
    @TableField(value = "num")
    @ApiModelProperty(value = "采购数量")
    private Integer num;
    /**
     * 单价
     */
    @TableField(value = "price")
    @ApiModelProperty(value = "单价")
    private Double price;
    /**
     * 采购申请金额
     */
    @TableField(value = "money")
    @ApiModelProperty(value = "采购申请金额")
    private Double money;
    /**
     * 最新操作时间
     */
    @TableField(value = "`time`")
    @ApiModelProperty(value = "最新操作时间")
    private Date time;
    /**
     * 状态，0代表已删除，1代表未删除
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态，0代表已删除，1代表未删除")
    @TableLogic(delval = "0", value = "1")
    private Integer status;
}